package com.hzy.oms.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单发货记录业务对象 oms_order_delivery_history
 *
 * @author zengxin
 * @date 2023-10-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OrderDeliveryHistoryBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderId;

    /**
     * 物流公司
     */
    @NotBlank(message = "物流公司不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deliveryCompany;

    /**
     * 物流单号
     */
    @NotBlank(message = "物流单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deliverySn;


}
